package com.yh.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yh.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yh.entity.vo.LoginUserVO;

import java.util.Map;

/**
 * <p>
 * 用户 用户登录信息表 服务类
 * </p>
 *
 * @author yh
 * @since 2021-04-06
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser createUser(SysUser sysUser);

    SysUser updateUser(SysUser sysUser);

    SysUser getInfo(Long id);

    Page<SysUser> getPage(Integer pageNum, Integer pageSize);

    LoginUserVO login(SysUser sysUser);

    Map<String,Object> getUserInfo(String token);
}
